SRC := $(wildcard *.c)
OBJ := $(patsubst %.c,%.o,$(SRC))

.PHONY: clean all

all: inform-6.31

$(OBJ): %.o: %.c
	gcc $(CFLAGS) -DLINUX -DInclude_Directory="\"/usr/share/inform-6.31/include,/usr/share/inform-6.31/modules\"" \
	  -Wall -Wextra -Wno-uninitialized $^ -c -o $@

inform-6.31: $(OBJ)
	gcc $(CFLAGS) $^ -o $@

clean:
	rm -f *.o inform-6.31
